package edawn.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import edawn.pojo.BdUserinfo;
import edawn.service.UserService;

@Controller
public class UserController {
	
	@Autowired
	private UserService userService;
	
	@RequestMapping("user/{Id}")
	@ResponseBody
	public BdUserinfo getUserbyId(@PathVariable Integer Id){
		BdUserinfo user = userService.getUserById(Id);
		return user;
		
	} 
}
